<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>厚浦</title>
</head>
<body>
<link rel="stylesheet" href="../../layui/css/layui.css">
<!--项目JS主入口
以依赖layui的layer和form模块为例-->
<script src="../../layui/layui.js"></script>
<!--事务监听器-->
<table id="demo" lay-filter="test"></table>
<!--<button type="button" class="layui-btn">
    <a href="/firstWeb/pages/department/hanjiang_insert.html" class="layui-btn">
    <i class="layui-icon">&#xe608;</i> 添加
        </a>
</button>-->

<script>
    //一般直接写在一个js文件中
    layui.use(['table'], function () {
        var table = layui.table;

        table.render({
            elem: '#demo',
            height: 312,
            url: '/firstWeb/layuidepartment',//数据接口
            page: false,//是否开启分页
            cols: [[//表头
                {field: 'p_id', title: '部门编号', fixed: 'left'},
                {field: 'p_name', title: '部门名称'},
                {field: 'p_remark', title: '部门备注'},
                {field: 'p_is', title: '是否成员通过'},
                {title: '其他操作'}
            ]]
        })
    });
/*    function onAddBtn(){
        //页面层-自定义
        layer.open({
            type: 1,
            title:"新建配置",
            closeBtn: false,
            shift: 2,
            area: ['400px', '300px'],
            shadeClose: true,
            btn: ['新增', '取消'],
            btnAlign: 'c',
            content: $("#add-main"),
            success: function(layero, index){},
            yes:function(){
            }
        });
    }*/
</script>
</body>
</html>